//
//  USMainHomeToolBarItemCell.m
//  us
//
//  Created by karry on 2025/4/23.
//

#import "USMainHomeToolBarItemCell.h"

@implementation USMainHomeToolBarItemCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    

    self.contentView.backgroundColor = [UIColor mi_1_color];
    self.contentView.layer.cornerRadius = 12;
    self.contentView.layer.masksToBounds = YES;
    self.layer.masksToBounds = NO;
}

- (UIView *)tagView{
    if (!_tagView) {
        _tagView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 9, 9)];
        _tagView.layer.cornerRadius = 4.5;
        _tagView.backgroundColor = UIColor.us_redColor;
        _tagView.layer.masksToBounds =YES;
        [self addSubview:_tagView];
        [_tagView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.mas_equalTo(self.mas_right);
            make.top.mas_equalTo(self.mas_top);
            make.width.height.mas_equalTo(9);
        }];
    }
    return _tagView;
}

@end
